package com.genius;

import com.genius.Genius.Util.TestMaster.TestObject;
import com.genius.fishMan.FishMan;
import com.genius.service.Person;

import java.util.HashMap;
import java.util.Map;

public class RpcClient extends TestObject {
    @Override
    public void Test() {
        Object sum = FishMan.goFishing("geniusService/add",1,2);
        System.out.println("调用结果 = "+sum);
        Map<String, Object> objectObjectHashMap = new HashMap<>();
        objectObjectHashMap.put("hello",123);
        objectObjectHashMap.put("user",new Person(12,"yjy"));
        Object map = FishMan.goFishing("geniusService/testMap",objectObjectHashMap);
        System.out.println("调用结果 = "+map);
    }

    public static void main(String[] args) {
//        Object res = FishMan.goFishing("helloService/sayHello","Genius");
//        System.out.println(res);


    }
}
